package com.ruoyi.ocean.service;

import com.ruoyi.ocean.domain.OceanAccount;
import com.ruoyi.ocean.domain.vo.OceanAccountVo;
import com.ruoyi.ocean.domain.bo.OceanAccountBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.Date;
import java.util.List;

/**
 * 广告主账户Service接口
 *
 * @author linziheng
 * @date 2024-05-09
 */
public interface IOceanAccountService {

    /**
     * 查询广告主账户
     */
    OceanAccountVo queryById(Long id);
    int queryByAdvertiserId(Long advertiserId);

    /**
     * 查询广告主账户列表
     */
    TableDataInfo<OceanAccountVo> queryPageList(OceanAccountBo bo, PageQuery pageQuery);

    /**
     * 查询广告主账户列表
     */
    List<OceanAccountVo> queryList(OceanAccountBo bo);

    /**
     * 新增广告主账户
     */
    Boolean insertByBo(OceanAccountBo bo);

    /**
     * 修改广告主账户
     */
    Boolean updateByBo(OceanAccountBo bo);

    /**
     * 校验并批量删除广告主账户信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);

    List<OceanAccountVo> queryActiveList();

    int count(String type,String name);

    List<OceanAccountVo> queryListByPage(int i, int size,String type,String name);

    void updateYes(Long agentId, Date yesterday);
}
